package day0408.factory1;

/**
 * @Author Weton Li
 * @Date 2021/4/8 17:22
 */
public class SkirtFactory {
    public Skirt getSkirt(String skirtType){ // 返回类型是接口Skirt
        if (skirtType.equalsIgnoreCase("MiniSkirt")) {
            return new MiniSkirt();
        } else if (skirtType.equalsIgnoreCase("DressSkirt")) {
            return new DressSkirt();
        }
        return null;
    }
}
